﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Coding4Fun.Phone.Controls;

namespace CloudFox.Presentation.Util
{
    public class MessageService : IMessageService
    {
        public void ShowErrorMessage(string message)
        {
            Deployment.Current.Dispatcher.BeginInvoke(() =>
            {
                MessageBox.Show(message, "Error", MessageBoxButton.OK);
            });
        }

        public void ShowInformationMessage(string message)
        {
            Deployment.Current.Dispatcher.BeginInvoke(() =>
            {
                MessageBox.Show(message, "Info", MessageBoxButton.OK);
            });
        }

        public void ShowToastMessage(string message)
        {
            Deployment.Current.Dispatcher.BeginInvoke(() =>
            {
                ToastPrompt toast = new ToastPrompt();
                toast.Title = message;
                toast.Show();
            });
        }
    }
}
